<template>
  <div class="app-container home">
    <el-divider />
  </div>
</template>

<script lang="ts" name="Index" setup>
import {useRouter} from 'vue-router';
import {DataAnalysis, DataLine, Monitor, TrendCharts} from '@element-plus/icons-vue';

const router = useRouter();

const goToDashboard = (dashboard: string) => {
  const baseUrl = window.location.origin;
  window.open(`${baseUrl}/view/${dashboard}`, 'dashboard_window_' + dashboard);
};

const goTarget = (url: string) => {
  window.open(url, '__blank');
};
</script>

<style lang="scss" scoped>
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: 'open sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }

  .dashboard-buttons {
    margin-top: 20px;

    .el-card {
      cursor: pointer;
      transition: all 0.3s;

      &:hover {
        transform: translateY(-5px);
        box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
      }
    }

    .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .card-content {
      text-align: center;
      padding: 20px 0;

      .el-icon {
        margin-bottom: 10px;
        color: #409EFF;
      }

      p {
        margin: 0;
        font-size: 16px;
        color: #606266;
      }
    }
  }
}
</style>
